* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  width: 100%;
  height: 100%;
}
body {
  font-family: "montserrat", sans-serif;
  background-color: #00000081;
  color: #ffffff;
  height: 100%;
  justify-content: center;
  align-content: center;
  background-image: linear-gradient(
    45deg,
    rgba(255, 0, 0, 1) 10%,
    rgba(0, 153, 255, 1) 50%,
    rgba(255, 153, 0, 1) 90%
  );
}
.base {
  max-width: 600px;
  margin: 0 auto;
}
a {
  text-decoration: none;
  color: #facc009f;
}
.outer,
.gitee {
  max-width: 600px;
}
.card,
.gitee {
  background-color: #ffffff00;
  border-radius: 1.5em;
  padding: 0.5em;
  margin: 0.5em 0;
  /* box-shadow: 10px 10px 10px rgb(10, 10, 10); */
  height: 100%;
  width: 100%;
  background-color: #0f00e748;
  transition: all 0.5s;
}
.card:hover {
  margin: 20px 0 0 20px;
  box-shadow: -10px -10px 10px rgb(10, 10, 10);
}
.card:hover + .gitee,
.gitee:hover {
  z-index: -1;
  margin: 10px 0 0 20px;
  box-shadow: -10px -10px 10px rgb(10, 10, 10);
}

/* 搜索栏容器 */
.search-container2 {
  height: 3em;
  width: 100%;
  display: flex;
  position: absolute;
  top: 0;
  /* background-color: pink; */
  border-radius: 1.5em;
  padding: 0 1.5em;
  /* margin: 0.1em; */
  /* height: 2.8em; */
  /* opacity: 0; */
  z-index: 2;
}
.search-container2 input {
  height: 100%;
  flex: 1;
  background-color: #ffffff00;
  border-color: #00000000;
  font-size: 1em;
  font-weight: 700;
  z-index: 2;
}
.search-container2 input:focus {
  outline: none;
}
.search-container2 button {
  position: absolute;
  right: 0;
  height: 100%;
  width: 3em;
  background-color: #ffffff00;
  border: 0px #cccccc00;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1em;
  z-index: 2;
}
/* 用于给search-container实现加载动画 */
.search-container {
  height: 3em;

  display: flex;
  position: relative;
  background-color: pink;
  border-radius: 1.5em;
  padding: 0 1.5em;
  /* margin: 0.1em; */
  /* height: 2.8em; */
  /* opacity: 0; */
}
.onload {
  margin: 0.2em;
  height: 2.6em;
}
.search-loader {
  position: relative;
  height: 3em;
  border-radius: 1.5em;
  overflow: hidden;
  transition: all 0.5s;
  &:focus-within {
    box-shadow: 0 0 15px rgb(243, 255, 70);
  }
}
.search-loader::before {
  content: "";
  display: table;
}
@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.search-loader .gururu {
  height: 1500%;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: linear-gradient(
    0deg,
    rgba(255, 0, 0, 1) 0%,
    rgba(0, 0, 255, 1) 20%,
    rgba(255, 153, 0, 1) 30%,
    rgba(255, 255, 0, 1) 40%,
    rgba(0, 255, 0, 1) 45%,
    rgba(0, 153, 255, 1) 50%,
    rgba(0, 0, 255, 1) 55%,
    rgba(255, 0, 0, 1) 60%,
    rgba(153, 0, 255, 1) 70%,
    rgba(255, 153, 0, 1) 80%,
    rgba(255, 0, 255, 1) 100%
  );
  animation: spin 1.5s infinite;
}

/* 天气展示区域 */
.weather-container {
  margin-top: 1em;
  width: 100%;
  /* background-color: rgba(0, 0, 255, 0.39); */
  position: relative;
}
.weather-icon {
  position: absolute;
  right: 5%;
  top: 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  background-color: #c6d4036c;
  border-radius: 50%;
  border: 1px solid #ffffff00;
  box-shadow: 10px 10px 10px rgb(10, 10, 10);
}
.weather-icon img {
  position: absolute;
  top: -5%;
}
.weather-container .weather-description {
  height: 30px;
  padding: 0 0.5em;
  border-radius: 10px;
  background-color: #4fffad;
  border: 1px solid #ffffff00;
  font-size: large;
  color: rgb(65, 65, 65);
  font-weight: 700;
  position: absolute;
  bottom: -15%;
  right: 0;
  box-shadow: 10px 10px 10px rgb(10, 10, 10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.weather-container div {
  font-size: 1.5em;
  font-weight: 700;
  padding-left: 1em;
  color: rgba(255, 230, 230, 0.774);
}
